<?php
/**
 * 用户相关接口请求参数验证器
 * User: 发仔<i@fazi.me>
 * Date: 2018/08/008
 */

namespace app\open\validate;
use app\base\validate\BaseValidate;

class OrderValidate extends BaseValidate
{
    protected $rule = [
        'order_id' => 'require|integer',
        'order_state' => 'require|integer',
        'car_id' => 'require|integer',
        'driver_id' => 'require|integer',
        'car_number' => 'require',
    ];

    protected $message = [
    ];

    protected $scene = [
        'audit' => [ 'order_id','order_state' ],
        'close' => [ 'order_id','close_chcek' ],
        'dispatch' => [ 'order_id','car_id','driver_id','car_number' ],
    ];
}